
 {extend name="index\index"}
 {block name="main"}
 {css href="/static/home/css/channellist-42b1c9e0.css" /}
 {css href="/static/home/css/media.css" /}
</head>
<body data-page="article" class="page-article">
<div class="main" style="margin-top: 260px">
{if empty($content)}
<div>
    文字为空
</div>
{else/}
    <div class="left-wrapper"><h2 class="">{$content['aname']}</h2>
        <div class="meta"><span class="wm-copyright">原创</span>
        <a href="http://www.yidianzixun.com/channel/m117804" class="doc-source">{$content['nickname']}</a>
        <span>{$content['regtime']|date="Y-m-d H:i",###}</span>
        </div>
        <div class="content-bd"><!-- wemedia true -->
            <div id="imedia-article" class="imedia-article"><p style="text-align: left"><span><a
                    href="">{$content['nickname']}</a>/文</span></p>
                
                <p style="text-align: left"><span>{$content['content']}</span>
                </p></div>
            <p class="yidian-wm-copyright-bottom">本文为一点号作者原创，未经授权不得转载</p>
            </div>
        <div class="interact">
            {if (in_array(session('uid'),$soucag))}
                <span>已收藏</span>
            {else /}
                <a href="javascript:;" class="article-like" data-id="{$content['aid']}">收藏</a>
            {/if}

        </div>
        <div class="comments">
            <div class="hd-comment"><textarea
                    placeholder="发表你的精彩评论，还可以输入140字" maxlength="140" class="comment-input"></textarea>
                    <a href="javascript:;" data-id="{$content['aid']}" class="add-comment-btn adddiu" style="display: block;margin-top: 30px;margin-left: 22px">发表</a>
            </div>
            <h5><span>最新评论</span> </h5>
                        <ul class="comments-list" style="display: block">
                            {if (!$discusse == null)}

                            {volist name="discusse" id="di"}
                                <li >
                                    <p style="display: block"> <span class="comment-nickname">{$di['nickname']}</span> <span class="">{$di['time'] | date='y-m-d H:i',###}</span>   <span class="comment-reply float-right "> 回复 </span></p>
                                    <p>{$di['content']}</p>
                                    <div class="hd-comment asctnt" style="background-color: #ccc;margin-top: 10px">
                                        {if (!$di['answers'] == null)}

                                            {volist name="$di['answers']" id="p"}
                                                <p style="margin-left: 30px;"><span>{$p['nickname']} : </span> <span>{$p['contente']}</span></p>

                                            {/volist}
                                        {/if}
                                    </div>
                                    <div class="hd-comment anser" style="display: none">
                                        <textarea placeholder="还可以输入140字" maxlength="140" class="comment-input"></textarea>
                                        <a href="javascript:void(0);" class="add-comment-btn addanser" style="display: block;margin-top: 30px;margin-left: 22px" data-id="{$di['did']}">发表</a>
                                    </div>

                                </li>
                            {/volist}
                            {else /}
                            <div class="no-comment" style="display: block;">
                                <p>暂无评论，快来抢沙发！</p>
                            </div>
                            {/if}
                        </ul>

        </div>
    </div>
{/if}    
    <div class="right-wrapper">
        <div class="wemedia-wrapper" style="width: 350px">
        <a href="/attention/{$content['uid']}">
        {if empty($content['icon'])}
        <img src="/static/personal/img/batman.jpg" alt="">
        {else /}
        <img src="{$content['icon']}">
        {/if}
        </a>
        <a href="/attention/{$content['uid']}" class="wemedia-name">{$content['nickname']}</a>

            <div class="chan-info">
                        {if !session('?tel')}
                        <button class="subs" data-index="{$content['uid']}"  style="display: block;left: 65px;position: static">关注</button>
                        {else /}

                            {in name="$content['uid']" value="$att3"}
                                <button class="unsubs" data="{$content['uid']}" style="display: block;left: 65px">已关注</button>
                                <button class="subs" data="{$content['uid']}" style="display: none;left: 65px">关注</button>
                            {else/}
                                <button class="unsubs" data="{$content['uid']}" style="display: none;left: 65px">已关注</button>
                                <button class="subs" data="{$content['uid']}" style="display: block;left: 65px">关注</button>
                            {/in}
                            
                        {/if}
                    </div>
        </div>

        <div class="widget-box widget-hot-channel-box">
            <div class="widget widget-hot-channel">
                <h5>热门频道</h5>
                <div class="related-channels-list">

                    {volist name="arti" id="vl"}
                    <li class="js-channel-subscribe-item" data-fromid="e1411601" data-channelid="undefined"
                        >
                        <a href="/focus/{$vl['cid']}">
                            <img src="{$vl['photo']}">
                            <p>{$vl['cname']}</p>
                        </a>
                        {if !session('?tel')}
                        <button class="subscribe" data-index="{$vl['cid']}"  style="display: block">订阅</button>
                        {else /}

                            {in name="$vl['cid']" value="$list3"}
                                <button class="unsubscribe" data="{$vl['cid']}" style="display: block">已订阅</button>
                                <button class="subscribe" data="{$vl['cid']}" style="display: none">订阅</button>
                            {else/}
                                <button class="unsubscribe" data="{$vl['cid']}" style="display: none">已订阅</button>
                                <button class="subscribe" data="{$vl['cid']}"  style="display: block">订阅</button>
                            {/in}
                            
                        {/if}
                    </li>
                    {/volist}


                </div>
            </div>
        </div>
    </div>
</div>


{/block}
